<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
       /* function test(){
            var flag = confirm("真的要走吗？")
            if(flag == true){
                document.write("我走了");

            }
        }*/
        //<input type="button" value="退出" onclick="test()">;(放在body中)
        /*var timer1 = setTimeout(f,3000);
        var i = 0;
        function f(){
            console.log(i--)
            if (i == 0){
                clearTimeout(timer1);
            }
        }
        clearTimeout(timer1);*/

    </script>
</head>
<body>
    <div class="seckilldiv">
        <div class="seckillpic"></div>
        <div class="seckilltime">
            <span class="text">距离本场秒杀结束还剩:</span>
            <span class="day"></span>
            <span class="hour"></span>
            <span class="minute"></span>
            <span class="second"></span>
        </div>
    </div>
</body>
</html>